-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine primitive for join-values #17518
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Florent Poinsard <[email protected]>
9e65644
to
bd6d67f
Compare
ValuesJoin
engine primitiveVALUES
Statement
VALUES
StatementSigned-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17518 +/- ##
==========================================
+ Coverage 67.68% 67.73% +0.04%
==========================================
Files 1586 1587 +1
Lines 255170 255813 +643
==========================================
+ Hits 172722 173285 +563
- Misses 82448 82528 +80 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
/* | ||
select col1, col2, col3, col4, col5, col6 from left join right on left.col1 = right.col4 | ||
LHS: select col1, col2, col3 from left | ||
RHS: select col5, col6, id from (values row(1,2), ...) left(id,col1) join right on left.col1 = right.col4 | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the example query does not have id
column but RHS has in the select.
output shows col4
but it is not present in LHS or RHS
Description
This PR introduces the engine primitive for executing joins using the VALUES statement instead of a nested loop. This approach reduces network traffic and minimizes the number of queries executed. More details on this feature can be found in the related issue: #16508.
Related Issue(s)